<?php
return array(
	'router' => array(
		'routes' => array(
			'home' => array(
				'type' => 'Zend\Mvc\Router\Http\Literal',
				'options' => array(
					'route' => '/',
					'defaults' => array(
						'controller' => 'Foo\Controller\Index',
						'action' => 'index',
					),
				),
			),
			// The following is a route to simplify getting started creating
			// new controllers and actions without needing to create a new
			// module. Simply drop new controllers in, and you can access them
			// using the path /application/:controller/:action
			'foo' => array(
				'type' => 'Literal',
				'options' => array(
					'route' => '/foo',
					'defaults' => array(
						'__NAMESPACE__' => 'Foo\Controller',
						'controller' => 'Index',
						'action' => 'index',
					),
				),
				'may_terminate' => true,
				'child_routes' => array(
					'default' => array(
						'type' => 'Segment',
						'options' => array(
							'route' => '/[:controller[/:action]]',
							'constraints' => array(
								'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
								'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
							),
							'defaults' => array(
							),
						),
					),
				),
			),
		),
	),
	'controllers' => array(
		'invokables' => array(
			'Foo\Controller\Index' => 'Foo\Controller\IndexController'
		),
	),
	'view_manager' => array(
		'template_path_stack' => array(
			__DIR__ . '/../View'
		),
//		'template_map' => array(
//			'layout/layout' => __DIR__ . '/../View/layout/layout.phtml',
//			#'foo/index/index' => __DIR__ . '/../View/index/index.phtml',
//			'error/404' => __DIR__ . '/../View/error/404.phtml',
//		)
	),
);
?>
